<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div id="div"><p>1</p><p>3</p><p>4</p></div>
    <div id="a">1</div>
    <div id="a">2</div>
    <div id="a">1</div>
    <div id="a">3</div><div id="a">1</div>
    <input type="text" value="1" id="i" class="nc">
    <script>
    var a = document.getElementById('a')

    console.log(a)

    var b = document.getElementsByName('div')
    console.log(b)
    var c = document.getElementsByTagName('div')
    console.log(c)


    var qu = document.querySelectorAll('p');
    console.log(qu)
    // 创建节点
    var cj = document.createElement('biaoqian');
    console.log(cj)
    // 删除节点

     var ge =  document.getElementById('div');
    var g = ge.removeChild;

    var a = ge.replaceChild
     console.log(g)
     console.log(a)
    </script>
</body>
</html>